package com.example.qguserprovider.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@Mapper
public interface UserMapper {


    @Select("select * from qg_user where phone=#{phone} and password=#{password}")
    public Map getByPhonePwd(Map map);

    @Select("select * from qg_user where phone=#{phone}")
    public Map getByPhone(@RequestParam("phone") String phone);
}
